﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Antix.Data
{
    /// <summary>
    /// <para>Allowable actions on delete of a linked object</para>
    /// </summary>
    public enum DeleteActionEnum
    {
        /// <summary>Not Set (this is not a valid action, only in place where the action has not been set in the database)</summary>
        NotSet = -1,
        /// <summary>No action, disallow referenced table row deletion</summary>
        None,
        /// <summary>Cascade to, delete rows in referenced table. Use for child objects not in a collection</summary>
        CascadeTo,
        /// <summary>Cascade, delete this when referenced is deleted. Use for parent properties in a child collection</summary>
        CascadeFrom,
        /// <summary>Set this to null</summary>
        ToNull,
        /// <summary>Set this to default value</summary>
        ToDefault
    }
}
